package com.yjz.study.http.api

import com.yjz.common.restful.JCall
import com.yjz.common.restful.annotation.Filed
import com.yjz.common.restful.annotation.POST
import com.yjz.common.restful.annotation.GET
import com.yjz.study.http.entity.res.CourseNotice
import com.yjz.study.http.entity.res.UserProfile

/**
 *作用 :
 *作者 : yjz
 *时间 : 2025/2/11 16:52
 */
interface AccountApi {

    @POST("user/login")
    fun login(
        @Filed("userName") userName: String,
        @Filed("password") password: String
    ): JCall<String>

    @POST("user/registration")
    fun register(
        @Filed("userName") userName: String,
        @Filed("password") password: String,
        @Filed("imoocId") imoocId:
        String, @Filed("orderId") orderId: String
    ): JCall<String>

    /**
     * 获取用户个人信息
     */
    @GET("user/profile")
    fun profile(): JCall<UserProfile>

    /**
     * 同志记录
     */
    @GET("notice")
    fun notice(): JCall<CourseNotice>
}